﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SafeLoad.NControl
{
  /// <summary>
  /// NFloatationFlank.xaml 的交互逻辑
  /// </summary>
  public partial class NFloatationFlank : UserControl
  {
    public NFloatationFlank()
    {
      InitializeComponent();
    }

        public static readonly DependencyProperty TrimStrProperty = DependencyProperty.Register("TrimStr",
          typeof(string), typeof(NFloatationFlank), new PropertyMetadata(""));
        public string TrimStr
        {
            get
            {
                double trim = (double)GetValue(BouatAngleProperty) + 10000;
                string str = Convert.ToString(trim) + "deg";
                return "hello world";
            }
            set
            {
                string str = "hello world";
                SetValue(TrimStrProperty, str);
            }
        }

        public static readonly DependencyProperty BouatAngleProperty = DependencyProperty.Register("BouatAngle",
          typeof(double), typeof(NFloatationFlank), new PropertyMetadata(0.0));
        public double BouatAngle
        {
            get
            {
                return (double)GetValue(BouatAngleProperty);
            }
            set
            {
                SetValue(BouatAngleProperty, value);
            }
        }
    }
}
